<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
    <head>
	<base href="http://localhost:8080/grailskit/">
        <title><g:layoutTitle default="Grails" /></title>
        <link rel="stylesheet" href="${createLinkTo(dir:'themes/refresh/css',file:'refresh.css')}" />
        <link rel="stylesheet" href="${createLinkTo(dir:'themes/refresh/css',file:'jump-start.css')}" />
        <link rel="shortcut icon" href="${createLinkTo(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />				
    </head>
    <body>
<div id='wrap'>
        <div id="header">
            <h1 id='logo-text'><g:link controller="default">GrailsKit.com</g:link></h1>
		<h2 id='slogan'>Slogan here</h2>
        </div>

		<!-- menu -->	
	<div  id="menu">
		<ul>
			<li id="current"><a href="index.html">Home</a></li>

			<li><a href="index.html">Archives</a></li>
			<li><a href="index.html">Downloads</a></li>
			<li><a href="index.html">Services</a></li>
			<li><a href="index.html">Support</a></li>
			<li><a href="index.html">About</a></li>		
		</ul>
	</div>					
			

        <div id='content-wrap'>
		<div id="sidebar">
			<h1>User info</h1>
			<div class="left-box">
				<ul class="sidemenu">				
					<g:if test="${!session?.user?.isLoggedIn()}">
						<li><g:link controller="guser" action="login">Log in</g:link></li>
						<li><g:link controller="guser" action="register">Register</g:link></li>
					</g:if>
					<g:else>
						<li>Hello ${session?.user?.name}!</li>
						<li><g:link controller="guser" action="logout">Log out</g:link></li>
						<li><g:link controller="profile" action="show">My profile</g:link></li>
						<g:if test="${session?.user?.hasRole('admin')}">
							 <li><g:link controller="admin" action="">Admin Panel</g:link></li>
						</g:if>

					</g:else>

				</ul>	
			</div>
		</div>
<!-- before layout body -->
		<div id='main'>
		<g:layoutBody />
		</div>
<!-- after layout body -->
        </div>
	<div id='footer'>
		Footer area
	</div>
</div>
    </body>	
</html>
